package com.cskaoyan.mapper;

import com.cskaoyan.bean.CskaoyanmallStorage;
import com.cskaoyan.bean.CskaoyanmallStorageExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CskaoyanmallStorageMapper {
    long countByExample(CskaoyanmallStorageExample example);

    int deleteByExample(CskaoyanmallStorageExample example);

    /**
     * insert record to table
     * @param record the record
     * @return insert count
     */
    int insert(CskaoyanmallStorage record);

    /**
     * insert record to table selective
     * @param record the record
     * @return insert count
     */
    int insertSelective(CskaoyanmallStorage record);

    List<CskaoyanmallStorage> selectByExample(CskaoyanmallStorageExample example);

    /**
     * select by primary key
     * @param id primary key
     * @return object by primary key
     */
    CskaoyanmallStorage selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") CskaoyanmallStorage record, @Param("example") CskaoyanmallStorageExample example);

    int updateByExample(@Param("record") CskaoyanmallStorage record, @Param("example") CskaoyanmallStorageExample example);

    /**
     * update record
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(CskaoyanmallStorage record);
}